home *** CD-ROM | disk | FTP | other *** search
/ PD Collection CD 1 / PD Collection CD 1.iso / textual / tex / files / !tex / TeXsource / commontex / h / scan < prev    next >
Encoding:
Text File  |  1988-04-08  |  1.6 KB  |  70 lines

  1. /*
  2.  *    Copyright 1986, 1987 Pat Joseph Monardo. All rights reserved.
  3.  *    Copying of this file is granted according to the provisions 
  4.  *    specified in the file COPYING which must accompany this file.
  5.  */
  6.  
  7.  
  8. /*
  9.  *        scan.h
  10.  */
  11.  
  12. int        scan_left_brace();
  13. int        scan_optional_equals();
  14. bool    scan_keyword();
  15.  
  16. global    val        cur_val;
  17. global    int        cur_val_level;
  18.  
  19. int        scan_something_internal();
  20.  
  21. #define    INT_VAL            0
  22. #define    DIMEN_VAL        1
  23. #define    GLUE_VAL        2
  24. #define    MU_VAL            3
  25. #define    IDENT_VAL        4
  26. #define    TOK_VAL            5
  27.  
  28. int        scan_eight_bit_int();
  29. int        scan_seven_bit_int();
  30. int        scan_four_bit_int();
  31. int        scan_char_num();
  32. int        scan_fifteen_bit_int();
  33. int        scan_twenty_seven_bit_int();
  34.  
  35. int        scan_int();
  36. #define INFINITY    017777777777
  37.  
  38. global    int        radix;
  39.  
  40. #define    PLUS_TOKEN            (OTHER_TOKEN + '+')
  41. #define    MINUS_TOKEN            (OTHER_TOKEN + '-')
  42. #define    ZERO_TOKEN            (OTHER_TOKEN + '0')
  43. #define    A_TOKEN                (LETTER_TOKEN + 'A')
  44. #define    OTHER_A_TOKEN        (OTHER_TOKEN + 'A')
  45. #define    OCTAL_TOKEN            (OTHER_TOKEN + '\'')
  46. #define    HEX_TOKEN            (OTHER_TOKEN + '"')
  47. #define    ALPHA_TOKEN            (OTHER_TOKEN + '`')
  48. #define    POINT_TOKEN            (OTHER_TOKEN + '.')
  49. #define    EURO_POINT_TOKEN    (OTHER_TOKEN + ',')
  50.  
  51. int        scan_dimen();
  52. #define    MAX_DIMEN    07777777777
  53.  
  54. #define    scan_normal_dimen()        scan_dimen(FALSE, FALSE, FALSE)
  55.  
  56. global    gord    cur_order;
  57. int        scan_glue();
  58.  
  59. #define    scan_optional_space() \
  60.     {get_x_token(); if (cur_cmd != SPACER) back_input();}
  61.  
  62. #define    get_nbx_token() \
  63.     {do get_x_token(); while (cur_cmd == SPACER);}
  64.  
  65. #define    get_nbrx_token() \
  66.     {do get_x_token(); while (cur_cmd == SPACER || cur_cmd == RELAX);}
  67.  
  68. ptr        scan_rule_spec();
  69. #define    DEFAULT_RULE    26215
  70.